package com.citicpub_cloud.restfull.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.citicpub_cloud.restfull.api.dto.TbAdminAccountExt;

public class TbAdminAccountExtMapper implements RowMapper<TbAdminAccountExt> {  
	@Override
	public TbAdminAccountExt mapRow(ResultSet rs, int index) throws SQLException {
		TbAdminAccountExt obj = new TbAdminAccountExt();
		obj.setId(rs.getLong("id"));
		obj.setUid(rs.getString("uid"));
		obj.setTbAdminOrgId(rs.getLong("tb_admin_org_id"));
		obj.setTbAdminDepartmentId(rs.getLong("tb_admin_department_id"));
		obj.setLoginName(rs.getString("login_name"));
		obj.setCreateTime(rs.getTimestamp("create_time"));
		obj.setCreateUid(rs.getString("create_uid"));
		obj.setUpdateTime(rs.getTimestamp("update_time"));
		obj.setUpdateUid(rs.getString("update_uid"));
		obj.setIsDeleted(rs.getBoolean("is_deleted"));
		obj.setExt(rs.getString("ext"));
		obj.setPassword(rs.getString("password"));
		return obj;
	}
}
